package com.pzhuweb.sgblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pzhuweb.sgblog.domain.entity.Menu;
import com.pzhuweb.sgblog.domain.vo.MenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author 鄧浩奇
 * @classname MenuMapper
 * @description
 * @since 2023/8/6 17:30
 *
 **/

public interface MenuMapper extends BaseMapper<Menu> {
    List<String> selectPermsByUserId(Long id);

    List<MenuVo> selectAllRouterMenu();

    List<MenuVo> selectRouterMenuTreeByUserId(Long userID);

    List<Long> selectMenuIdsByUserId(Long userId);

    void deleteMenuIdsByRoleId(Long roleId);
}
